import api from '../axios'
import Vue from 'vue'
import router from '../router/index'
import * as types from './types'

export default {
	UserLogin: function({ commit }, data) {
		commit(types.LOGIN, data)
	},

	UserLogout: function({ commit }) {
		commit(types.LOGOUT)
	},

	UserName: function({ commit }, data) {
		commit(types.USERNAME, data)
	},
	UserInfo: function({ commit }, data) {
        commit(types.USERINFO, data)
    }
}
